﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Demo.NumberField
{
    public partial class Controls_NumberField : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            decimal value = 0;
            if (number1.Value.HasValue)
            {
                value = number1.Value.Value;
            }

            this.lblMsg.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 输入的值是：" + value;
        }
    }
}